class Constants(object):
    CHANNEL_TYPE_51JOB = "51job"
    CHANNEL_TYPE_LAGOU = "lagou"
    CHANNEL_TYPE_HUNTER = "hunter"
    CHANNEL_TYPE_BOSS = "boss"
    CHANNEL_TYPE_DAJIE = "dajie"
    CHANNEL_TYPE_ZHAOPIN = "zhaopin"

    EVENT_TYPE_DOWNLOAD = "download"
    EVENT_TYPE_SEARCH = "search"

    CONTEXT_ROOT_TASK_ID = "rootTaskId"
    CONTEXT_EVENT_TYPE = "eventType"
    CONTEXT_TYPE = "type"
    CONTEXT_CORP_CODE = "corpCode"
    CONTEXT_TENANT_ID = "tenantId"
    CONTEXT_USERNAME = "username"
    CONTEXT_PASSWORD = "password"
    CONTEXT_ACCOUNT = "account"
    CONTEXT_ACCOUNT_LIST = "accountList"
    CONTEXT_URL = "url"
    CONTEXT_UNION_KEY = "unionKey"
    CONTEXT_SEARCH_CONDITION = "searchCondition"
    CONTEXT_TOTAL = "total"
    CONTEXT_PAGE_SIZE = "pageSize"
    CONTEXT_CUR_PAGE = "curPage"
    CONTEXT_CUR_TOTAL = "curTotal"
    CONTEXT_IS_OVER = "isOver"
    CONTEXT_CARD_NUMBER = "cardNumber"
    CONTEXT_CARD_COMPLETE = "cardComplete"  #

    DOWNLOAD_CODE = "code"
    DOWNLOAD_MSG = "msg"

    SEARCH_CODE = "code"
    SEARCH_MSG = "msg"

    LOGIN_CODE = "code"
    LOGIN_MSG = "msg"

    TASK_NAME_DOWNLOAD = "task_resume_download"
    TASK_NAME_SEARCH = "task_resume_search"

    API_PARAM_TASK_TYPE = "taskType"
    API_PARAM_CONTEXT = "buyResumeContext"
    API_PARAM_SITE_CODE = "siteCode"
    API_PARAM_CORP_CODE = "corpCode"
    API_PARAM_TENANT_ID = "tenantId"

    CACHE_DOWNLOAD_TYPE = "type"
    CACHE_DOWNLOAD_TASK_ID = "task_id"
    CACHE_DOWNLOAD_DATA = "data"

    CACHE_SEARCH_TYPE = "type"
    CACHE_SEARCH_CONDITION = "condition"
    CACHE_SEARCH_TASK_ID = "task_id"
    CACHE_SEARCH_DATA = "data"

    ANALYSIS_CODE = "code"
    ANALYSIS_DATA = "data"

